package demo;

import java.util.Scanner;

public class Demo3 {
	public static void main(String[] args) {

		float x;
		System.out.println("请输入你要查询的成绩：");
		Scanner in = new Scanner(System.in);
		x = in.nextFloat();
		if (x >= 60)
			System.out.println("你的成绩为:" + (x >= 90 ? "A" : "B"));
		else

			System.out.println("你的成绩为:" + "C");

	}

}
